﻿using System.Windows;
using MDCAdminTool.Controls.Data_Cache.ViewModels;

namespace MDCAdminTool.Controls
{
    public partial class AddDataCacheItem : Window
    {
        public AddDataCacheItem()
        {
            InitializeComponent();
        }

        public AddDataCacheItem(MdcCache cache , CacheRegion region ) : this()
        {
            var vm = 
                new AddDataCacheItemViewModel 
                {
                    Cache = cache,
                    Region = region
                };
            DataContext = vm;
        }
    }
}
